using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;

namespace ConsoleApplication2.Models.Mapping
{
    public class PKT_SPD_BUFFERMap : EntityTypeConfiguration<PKT_SPD_BUFFER>
    {
        public PKT_SPD_BUFFERMap()
        {
            // Primary Key
            this.HasKey(t => t.ID);

            // Properties
            this.Property(t => t.RecordType)
                .HasMaxLength(20);

            this.Property(t => t.RecordID)
                .HasMaxLength(20);

            // Table & Column Mappings
            this.ToTable("PKT_SPD_BUFFER");
            this.Property(t => t.ID).HasColumnName("ID");
            this.Property(t => t.RecordType).HasColumnName("RecordType");
            this.Property(t => t.RecordID).HasColumnName("RecordID");
            this.Property(t => t.SPID).HasColumnName("SPID");
        }
    }
}
